'use strict';

const Controller = require('egg').Controller;

class HomesController extends Controller {
  async index() {
    this.ctx.body = 'hi, home1';
  }
  async home2() {
    const { ctx, app } = this;
    const res = await ctx.service.homes.find();
    ctx.body = res;
    // ctx.success({ a: 1 });
    // ctx.render('message/index.html', { a: 1 });
  }
}

module.exports = HomesController;
